﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Service.Interface
{
    public interface IUserInfoService : IService<UserInfo>
    {
        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="name">用户名</param>
        /// <returns></returns>
        UserInfo Get(string name);

        
        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="name">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        UserInfo Get(string name, string password);

        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="email">邮箱</param>
        /// <returns></returns>
        UserInfo GetByEmail(string email);

        /// <summary>
        /// 根据用户手机号码获取用户信息
        /// </summary>
        /// <param name="mobile">手机号码</param>
        /// /// <param name="userPwd">用户密码</param>
        /// <returns></returns>
        UserInfo GetByMobile(string mobile,string userPwd);
    }
}
